/**
 * 
 */
package com.zjtobacco.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjtobacco.dao.BaseDao;
import com.zjtobacco.dao.UserDao;
import com.zjtobacco.domain.User;
import com.zjtobacco.service.UserService;

/**
 * @author junpingwang
 * 
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<User, Integer> implements UserService  {
	@Autowired
	private UserDao userDao;

	@Override
	public User getByUsername(String username)
			throws Exception {
		return userDao.getByUsername(username);
	}

	@Override
	public BaseDao<User, Integer> getDao() {
		return userDao;
	}


}
